package com.xjoyt.pay.master.dao;

import java.util.List;
import java.util.Map;

import com.xjoyt.pay.dto.PageParam;
import com.xjoyt.pay.dto.PageResult;
import com.xjoyt.pay.master.params.MerchantOrderGroupParam;
import com.xjoyt.pay.master.params.OrderPageParam;
import com.xjoyt.pay.master.po.Order;

public interface OrderRepositoryCustom {

	PageResult<Order> loadPage(PageParam<OrderPageParam> param);

	Order findOneByMerchantIdAndOutTradeNo(String merchantId, String outTradeNo);

	Order findOneByNo(String no);

	Order findOneByOutTradeNo(String outTradeNo);

	List<Map<String, Object>> merchantSum(List<String> ids, MerchantOrderGroupParam param);

	Map<String, Object> sum(OrderPageParam param);

	List<Order> findAll(OrderPageParam param);

}
